package pers.cz.javacvdemo.common;

/**
 * BusinessException description
 *
 * @author 
 * @version 1.0.0
 * @date 2023-06-28 16:02:53
 */
public class BusinessException extends RuntimeException {

	private Error error;

	public BusinessException(Error error) {
		super(error.getMsg());
		this.error = error;
	}

	public BusinessException(Error error, String msg) {
		super(msg);
		this.error = error;
	}

	public Error getError() {
		return error;
	}

}
